#ifndef HOLDER_H
#define HOLDER_H

#include <QWidget>

#include "bord.h"
#include "player.h"
class Bob;
class Nest;

class Holder : public QWidget
{
    Q_OBJECT
public:
    explicit Holder(QWidget *parent = 0);
    Bord *bord;
    QHBoxLayout* lyt;
    QList<Player*> plr;

    enum act_t {        
        pointless,
        illegal,
        pointess,
        gameover
    };

    int cpl;
    Bob* sbob;
    Nest* snest;
    act_t last_act;
    int pts[2];
    act_t act(int bid, int nid, int pid);
    bool takeaway(int bid, int pid);
    QColor bcol, bgcol;

    QPushButton* pagain;
    QPushButton* nothanks;
    QFont fnt;
    QPropertyAnimation* anim;


signals:

public slots:
    void resizeEvent(QResizeEvent *e);
    void get_bob(Bob* bob);
    void get_nest(Nest* nest);
    void newgame();
    void bringbobback();
    void lockkey(QAbstractAnimation::State,QAbstractAnimation::State);
    void endgame();

};

#endif // HOLDER_H
